﻿using System;

using Ninject.Core;

using BlueSky.Web.IoC;

namespace BlueSky.Web.IoC.Ninject
{
    public class NinjectBinder : IBinder
    {
        public void Bind<TInterface, TClass>()
        {
            NinjectKernel.Kernel.Load(new InlineModule(m => m.Bind<TInterface>().To<TClass>()));            
        }
    }
}
